package com.tjsinfo.tjsoa.workplan.action;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class MessageSendAction extends Action{


	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		// TODO Auto-generated method stub
	/*	HttpSession session = request.getSession();
		User user = (User) session.getAttribute("user");
		TjsMessage	 tjsMessage = new TjsMessage();
		tjsMessage.setColname("工作计划");
		tjsMessage.setDatetime(new Date());
		tjsMessage.setLink("www.sina.com");
		tjsMessage.setRecuserid(Integer.parseInt(request.getParameter("recid")));
		tjsMessage.setSenduserid(user.getUser_id());
		tjsMessage.setTitle(request.getParameter("title"));
		tjsMessage.setValue(request.getParameter("value"));
		
		if (tjsMessageBo.sendNewMessage(tjsMessage)) {
			return mapping.findForward("ok");
		} else {
			return mapping.findForward("error");
		}*/
		return mapping.findForward("ok");
	}
	
}
